package lemo.m1;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {

    @Bean
    public ServletListenerRegistrationBean registrationBean(){
        return  new ServletListenerRegistrationBean(new ManCountLister());
    }

    @Bean
    public ServletListenerRegistrationBean registrationBean1(){
        return  new ServletListenerRegistrationBean(new MyServletListener());
    }
}
